home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / midas060 / samples / midp_dos / midp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-18  |  4.7 KB  |  144 lines

  1. /*      MIDP.H
  2.  *
  3.  * Common data and function prototypes for all MIDP modules
  4.  *
  5.  * Copyright 1995 Petteri Kangaslampi and Jarno Paananen
  6.  *
  7.  * This file is part of the MIDAS Sound System, and may only be
  8.  * used, modified and distributed under the terms of the MIDAS
  9.  * Sound System license, LICENSE.TXT. By continuing to use,
  10.  * modify or distribute this file you indicate that you have
  11.  * read the license and understand and accept it fully.
  12. */
  13.  
  14. #ifndef __MIDP_H
  15. #define __MIDP_H
  16.  
  17.  
  18. #define MIDPVERSION 2.00a
  19. #define MIDPVERNUM 0x200
  20. #define MIDPVERSTR "2.00a"
  21.  
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25.  
  26.  
  27.  
  28. /****************************************************************************\
  29. *
  30. * Function:     void InitDisplay(void)
  31. *
  32. * Description:  Initializes MIDP display
  33. *
  34. \****************************************************************************/
  35.  
  36. void InitDisplay(void);
  37.  
  38.  
  39.  
  40. /****************************************************************************\
  41. *
  42. * Function:     void DrawScreen(void)
  43. *
  44. * Description:  Draws the MIDP screen (without information)
  45. *
  46. \****************************************************************************/
  47.  
  48. void DrawScreen(void);
  49.  
  50.  
  51.  
  52. /****************************************************************************\
  53. *
  54. * Function:     void UpdateScreen(void)
  55. *
  56. * Description:  Updates the song playing information on screen
  57. *
  58. \****************************************************************************/
  59.  
  60. void UpdateScreen(void);
  61.  
  62.  
  63.  
  64. /****************************************************************************\
  65. *
  66. * Function:     void DrawSongInfo(void)
  67. *
  68. * Description:  Writes song-specific information on the screen
  69. *
  70. \****************************************************************************/
  71.  
  72. void DrawSongInfo(void);
  73.  
  74.  
  75.  
  76. /****************************************************************************\
  77. *
  78. * Function:     void DrawInstNames(void)
  79. *
  80. * Description:  Draws instrument names on the screen
  81. *
  82. \****************************************************************************/
  83.  
  84. void DrawInstNames(void);
  85.  
  86.  
  87.  
  88. /****************************************************************************\
  89. *      General variables:
  90. \****************************************************************************/
  91.  
  92. extern int      numChannels;            /* number of channels in module */
  93. extern int      dispChannels;           /* number of channels to display */
  94. extern int      activeChannel;          /* active channel number */
  95. extern gmpModule  *module;              /* current playing module */
  96. extern gmpInformation  *info;           /* current module playing info */
  97. extern int      paused;                 /* is playing paused? */
  98. extern unsigned masterVolume;           /* master volume */
  99. extern int      instNameMode;           /* instrument name display mode */
  100. extern int      firstInstName;          /* first instrument name on screen */
  101.  
  102. extern time_t   startTime;              /* total playing time */
  103. extern time_t   pauseTime;              /* time spent paused */
  104. extern time_t   pauseStart;             /* start time for current pause */
  105.  
  106. extern int      msgWindowHeight;        /* message window height */
  107.  
  108. extern uchar    chMuted[32];            /* channel muted flags */
  109.  
  110. extern int      realVU;                 /* are real VU meters active? */
  111.  
  112.  
  113.  
  114.  
  115.  
  116. /****************************************************************************\
  117. *      Display attributes:
  118. \****************************************************************************/
  119.  
  120. extern uchar    attrDispTop;            /* display top message */
  121. extern uchar    attrMainBg;             /* main window background */
  122. extern uchar    attrMainLit;            /* main window lit areas */
  123. extern uchar    attrMainShadow;         /* main window shadow areas */
  124. extern uchar    attrMainBorderLit;      /* main window lit border */
  125. extern uchar    attrMainBorderSh;       /* main window shadow border */
  126. extern uchar    attrChanInfoSep;        /* channel information separator */
  127. extern uchar    attrChanInfo;           /* channel information */
  128. extern uchar    attrSongInfoLabel;      /* song information label */
  129. extern uchar    attrSongInfo;           /* song information */
  130. extern uchar    attrUsedInstName;       /* used instrument name */
  131. extern uchar    attrUnusedInstName;     /* unused instrument name */
  132. extern uchar    attrInstNameSeparator;  /* instrument name separator */
  133. extern uchar    attrInstIndicator;      /* instrument used indicator */
  134. extern uchar    attrActChanMarker;      /* active channel marker */
  135. extern uchar    attrVUMeters;           /* VU meters */
  136. extern uchar    attrVUBlank;            /* Blank VU meters */
  137.  
  138.  
  139. #ifdef __cplusplus
  140. }
  141. #endif
  142.  
  143. #endif
  144.